# -*- coding: utf-8 -*-
from venv1.Page.loginPage import loginPage
import time
from selenium.webdriver.common.keys import Keys
class login():
    def __init__(self,driver):
        self.driver = driver
        self.loginPage = loginPage(self.driver)
    #登录
    def login(self,username,password):

        self.loginPage.userName().send_keys(username)
        time.sleep(1)
        self.loginPage.pwdWord().send_keys(password)
        time.sleep(1)
        self.loginPage.submit().click()
        time.sleep(1)
